var mongoose = require('./mongodb.js');
var Schema = mongoose.Schema
var userSchema = new Schema({
    _id:Schema.Types.ObjectId,// id
    nickName:String,
    password:String,
    bind:String,
    headImage:String,
    type:Number
},{'collection':'user'});

var User = mongoose.model('User', userSchema,'user');
module.exports = User;